import request from '@/utils/request'

// 查询资料列表
export function listUser(query) {
  return request({
    url: '/system/resource/list',
    method: 'get',
    params: query
  })
}
// 删除资料
export function delUser(id) {
  return request({
    url: `/system/resource/${id}`,
    method: 'delete'
  })
}
// 新增资料
export function addUser(data) {
  return request({
    url: '/system/resource',
    method: 'post',
    data: data
  })
}

